import { prop } from '@typegoose/typegoose';
import { ApiPropertyOptional } from '@nestjs/swagger';

// 定义帖子模型类
export class Post {
  @ApiPropertyOptional({ description: '帖子标题', example: '帖子标题1' })
  @prop()
  public title?: string;
  @ApiPropertyOptional({description: '帖子内容', example: '帖子内容1'})
  @prop()
  public content?: string;
}